
package com.xpo.settingskeeper;

import android.content.ContentResolver;
import android.content.Context;
import android.provider.Settings;

public class SecureSettingsKeeper extends SettingsKeeper {
    public static final String TAG = "SecureSettingsKeeper";

    SecureSettingsKeeper(Context context, String dbName) {
        super(context, dbName);
    };

    @Override
    protected void loadSettingsNameList() {
        mSettingNameList = Utility.getSettingNameList(R.xml.secure, mContext);
    }

    @Override
    protected String getTag() {
        return TAG;
    }

    @Override
    protected String getTableName() {
        return "SecureSettings";
    };

    @Override
    protected String settingItem(String name) {
        return Settings.Secure.getString(mContext.getContentResolver(), name);
    }

    @Override
    protected boolean setSettingItem(ContentResolver resolver, String name, String value) {
        return Settings.Secure.putString(resolver, name, value);
    };
}
